package threading;

public class ThreadCounter extends Thread{
	
	Counter counter = null;
	public ThreadCounter(Counter counter) {
		this.counter = counter;
	}
	
	@Override
	public void run() {
		
		counter.inc();
//		System.out.println(counter.getValue());
//		counter.dec();
//		System.out.println(counter.getValue());
		
	}
}
